define([ 'ng', 'ngResource' ], function(angular) {
  var app=angular.module("MensajeriaModule", [ "ngResource" ]);
  app.factory("Mensajeria",function($resource) {
	var service = {};
  	
		  service.sendMessageResource = $resource('/api/mensajeria/send',{},{sendMessage:{method:'POST',isArray:false}}).sendMessage;
		  service.sendMessage = function( body, callback, error ) { return service.sendMessageResource({}, body, callback, error ); }
     
	return service;
  });
});
